Skip to content

Upgrade to Ember 7.4 on Vite - #241

Draft
NullVoxPopuli-ai-agent wants to merge 63 commits into
emberobserver:masterfrom
NullVoxPopuli-ai-agent:nvp/ember-7
Draft

NullVoxPopuli-ai-agent wants to merge 63 commits into
emberobserver:masterfrom
NullVoxPopuli-ai-agent:nvp/ember-7

Conversation

@NullVoxPopuli-ai-agent

@NullVoxPopuli-ai-agent NullVoxPopuli-ai-agent commented Nov 24, 2026 •

Copy link
Copy Markdown

Upgrades the app from Ember 3.25 to Ember 7.4 on Vite, with pnpm. Lint passes, and all 181 tests pass. The tests log no Ember or WarpDrive deprecations.

Each commit is one stage of ember-upgrade, a codemod runner, so you can review the upgrade one step at a time. The stages:

  • move to pnpm, and update ember-cli and ember-source through each LTS to 7.4
  • replace ember-cli-mirage setup, ember-fetch, and Ember globals
  • build with Vite, with Sass through Vite
  • remove or replace v1 addons, such as ember-router-scroll, ember-power-select-typeahead and emberx-select
  • convert classic components to Glimmer components, and templates to .gjs
  • use the and, or, not, eq, neq and lt keywords of ember-source 7.1 in place of ember-truth-helpers
  • run the server/ folder, with its /api proxy to emberobserver.com, in the Vite dev server
  • resolve the WarpDrive deprecations: an explicit LegacyMode store (useLegacyStore), @warp-drive/ember/install, the store and transforms from the modules that ember-data recommends, inflection rules in @warp-drive/utilities/string (Mirage too), and normalized relationship types
  • resolve the Sass deprecations of the app's own stylesheets with sass-migrator (division and color functions), and leave out the warnings of bourbon with quietDeps. The compiled CSS stays the same. The @import warnings stay while the styles use bourbon.
  • remove the dependencies that nothing uses any more, such as babel-eslint, npm-run-all and ember-decorators. ember-upgrade-progress.yaml lists them.
  • format the changed files with the app's own Prettier config, which becomes .prettierrc.cjs because the package is now a module
  • move the ESLint config to a flat config, and record the lint errors from before the upgrade in eslint-suppressions.json and .lint-todo, so that pnpm lint passes and fails only for new errors

No commit is by hand. These stages came from upgrading this app, and they work on any app:

  • the nine record.save() calls become store.request(saveRecord(record)), because record.save() is deprecated. This changes only calls in a class with services whose value nothing reads.
  • the GitHub Actions workflow from Run lint and tests in GitHub Actions #242 moves to pnpm and Node 24.
  • the header search tests leave the default searchReadmes=false out of the expected URL, which Ember 7 does not write. A test click on a link in a PowerSelect option sends only the click event, because PowerSelect closes the list on mouseup.

How to reproduce

From master at 5c64a06:

npx ember-upgrade@0.2.0 .

The tool commits once for each stage. ember-upgrade-progress.yaml lists what is left to do by hand.

This replaces #240 (Ember 3.28).

🤖 Generated with Claude Code

Move from yarn 1 or npm 6 to pnpm

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Replace `Ember.*` globals with `@ember/*` imports (RFC 176)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-cli to 4.12

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Replace ember-fetch with the global fetch (RFC 1065)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 3.28, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 4.4, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 4.8, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 4.12, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 5.4, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 5.8, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 5.12, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 6.4, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 6.8, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 6.12, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move from ember-cli-mirage to ember-mirage

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Build with Vite (ember-vite-codemod)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Compile Sass with Vite, not ember-cli-sass

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove ember-cli-deploy. It deploys ember-cli builds, and Vite writes the build to dist/

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove ember-test-selectors

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove ember-export-application-global. Ember Inspector finds the app without a global

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move ember-feature-flags, a v1 addon with no v2 release, into the app

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-inflector to 7.0.2, which is a v2 addon

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-moment to 11.1.0, which is a v2 addon

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-power-select to 9.0.6, which is a v2 addon

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move emberx-select, a v1 addon with no v2 release, into the app

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
List the v1 addons that have no v2 release in ember-upgrade-progress.yaml

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move the snippets of ember-cli-inline-content into the HTML files

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move the route titles of ember-cli-document-title to ember-page-title

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Add `this.` to template properties (ember-no-implicit-this-codemod)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move component templates next to their classes (ember-component-template-colocation-migrator)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Invoke components that are values with angle brackets

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Convert classic components into Glimmer components

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Convert templates to <template> tag (@embroider/template-tag-codemod)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move the tasks to the syntax of ember-concurrency 5, and update it

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove @ember/jquery, and turn off the jquery-integration feature

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Update ember-source to 7.4, and the packages that its app blueprint lists

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove the default query params from the URLs that tests expect

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Use the keywords of ember-source 7.1 in place of ember-truth-helpers

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move the ember-cli-build settings that Vite has another place for

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Write the modules that addons merged into the app (ember-addon.app-js) into app/

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Declare the packages that the app imports

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Move to the ember.nvp layout (ember.nvp migration)

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Run the ember-cli server/ folder in the Vite dev server

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Resolve the WarpDrive deprecations: reactivity, the legacy store, inflections and relationship types

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Resolve the Sass deprecations: division, color functions, and the warnings of dependencies

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Remove the dependencies that no file, script or other dependency uses

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Run pnpm, and a Node.js version that Vite runs on, in the GitHub Actions workflows

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Format the changed files with the app's Prettier config

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Record the lint errors that are left, so that lint passes from here on

Co-Authored-By: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants